package com.neutech.neusys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neusys.mapper.ConstantTypeMapper;
import com.neutech.neusys.service.ConstantTypeService;
import com.neutech.po.ConstantType;

@Service
public class ConstantTypeServiceImpl implements ConstantTypeService{
	@Autowired
	private ConstantTypeMapper constantTypeMapper;
	
	/* 查询常数类别 */
	@Override
	public List<ConstantType> findall() {
		// TODO Auto-generated method stub
		return constantTypeMapper.findall();
	}
	
	/* 模糊查询常数类别 */
	@Override
	public List<ConstantType> selectsome(String name) {
		// TODO Auto-generated method stub
		return constantTypeMapper.selectsome(name);
	}
	
	/* 增加常数类别 */
	@Override
	public int addConstantType(ConstantType addconstantType) {
		// TODO Auto-generated method stub
		int num = constantTypeMapper.addConstantType(addconstantType);
		return num;
	}
}
